FILEFIND.EOF Function

Syntax

Flag as L = fileFindObj.EOF()

Returns

FlagLogical

Returns .t. if the last operation moved pas the end of the file. Otherwise, .f..

Description

Returns TRUE if the last operation read past end.

Discussion

The .EOF() method returns .T. if the last .EOF() method moved past the last file in the list of files referenced by the filefind object pointer.

Example

// Get a filefind object that points to the directory:
dirs = filefind.first("c:\a5\*.*", FILE_FIND_DIRECTORY + FILE_FIND_READONLY)

// Iterate over every file in the directory.
while .not. dirs.EOF()
    dir_name = dirs.name()
    dirs.next()
    trace.writeln(dir_name)
end while

See Also